package com.zone.sdk.module.appstore;

import com.zone.sdk.common.http.base.BaseRequest;
import com.zone.sdk.common.http.base.Result;
import com.zone.sdk.module.appstore.base.AppStoreResult;
import com.zone.sdk.module.appstore.entity.AppEntity;
import com.zone.sdk.module.appstore.request.AppsDetailRequest;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface ICloudAppStoreService {


    /**
     * 应用列表查询
     * 查询应用列表及状态，包含已安装，未安装
     * @return
     */
    @Headers({"Content-Type: application/json;charset=utf-8",
            "Accept: application/json;charset=utf-8"})
    @POST("ags/homeShow/list")
    Observable<Result<AppStoreResult<AppEntity>>> homeAppList(@Body BaseRequest request);

    @Headers({"Content-Type: application/json;charset=utf-8",
            "Accept: application/json;charset=utf-8"})
    @POST("aps/apps/detail")
    Observable<Result<AppEntity>> appsDetail(@Body AppsDetailRequest request);

    @Headers({"Content-Type: application/json;charset=utf-8",
            "Accept: application/json;charset=utf-8"})
    @POST("ags/product/orderList")
    Observable<Result<List<AppEntity>>> appList(@Body AppsDetailRequest request);

}
